﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp10
{
    public enum SELECT { School, Class, Student };
    public class Class
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int SchoolID { get; set; }

        public Class(int id, string name, int schoolID)
        {
            ID = id;
            Name = name;
            SchoolID = schoolID;
        }
    }

    public class School
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public List<Class> Classes { get; set; } = new List<Class>();

        public School(int id, string name)
        {
            ID = id;
            Name = name;
        }

        public void AddClass(Class schoolClass)
        {
            Classes.Add(schoolClass);
        }
    }
    public class Student
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }
        public int ClassID { get; set; }
        public Student(int id, string name, int age, int classID)
        {
            ID = id;
            Name = name;
            Age = age;
            ClassID = classID;
        }
    }
    internal class Data
    {
    }
}
